package com.example.chatchatbackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chatchatbackend.entity.dto.Category;
import com.example.chatchatbackend.entity.dto.Shopping;
import com.example.chatchatbackend.entity.vo.response.CategoryVO;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 丁真
 * @since 2024-10-28 05:03:47
 */
public interface CategoryService extends IService<Category> {

    List<Category> getAllCategory();

    IPage<Category> pageThree(Integer pageNum, Integer pageSize) ;
    
    CategoryVO insertCategory(CategoryVO categoryVO);

    List<CategoryVO> insertCategoryList(List<CategoryVO> categoryVOList);

    List<CategoryVO> findByIds(List<Integer> ids);

    List<CategoryVO> findByTitle(String title);
}
